<?php
namespace backend\models\friend;
use yii\db\ActiveRecord;

class Friend extends ActiveRecord
{
	public $nickname;


	/**
	 * @return string 返回该AR类关联的数据表名
	*/

	public static function tableName()
	{
		return '{{%friend}}';
	}

	 public function rules()
    {
        return [
            [['user_id', 'to_id', 'friend_addtime'], 'integer']
        ];
    }
}